package com.scy.java.object.StringDemo;

import java.util.Scanner;

public class StringSub {
        public static void main(String[] args) {
                System.out.println("请输入手机号：");
                String str = new Scanner(System.in).next();
                String start = str.substring(0,3);
                String end = str.substring(7);
                String result = start + "****"+end;
                System.out.println(result);


        }
}
